package com.turing.data.scripts.contract.transfer

import com.turing.data.vo.out.review.DependParamsVO
import com.turing.data.vo.out.review.TaskElementVO


class MinSubscribe_30177_10_transfer {

    static List< TaskElementVO.DrawResultVO > doConvert(List< TaskElementVO.DrawResultVO > resultVOs, DependParamsVO dependParams){

        for( drawResultVO in resultVOs ){
                def childTaskSn = drawResultVO.childTaskSn
                if(null == childTaskSn || childTaskSn == ""){
                    continue
                }
            String modelValue = drawResultVO.text

            Integer[] numbers = modelValue.findAll(/\d+/)*.toInteger()
            int money = 0
            for(num in numbers){
                money = num
                break
            }
			if(money>0){
				drawResultVO.businessValue  =  money + ".000000万元"
                drawResultVO.type = 1
			}else{
                drawResultVO.businessValue = ""
            }
           
        }

        return resultVOs
    }

}
